package cn.steam.bar.ctrl;

import cn.steam.bar.feign.LockFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author zhang jintao on 2022/05/20
 **/
@RestController("fuck")
public class LockCtrl {

    @Autowired
    LockFeign feign;

    @GetMapping("fuck")
    public void fuck() {
        for (int i = 0; i < 100; i++) {
            new Thread(()->{
                String uuid = UUID.randomUUID().toString();
                feign.fuck(uuid);
            }).start();
        }
    }
}
